<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>会员积分中心 - 社交平台</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            --primary: #5B21B6;
            --primary-light: #EDE9FE;
            --secondary: #EC4899;
            --secondary-light: #FCE7F3;
            --success: #10B981;
            --success-light: #D1FAE5;
            --warning: #F59E0B;
            --warning-light: #FEF3C7;
            --dark: #1F2937;
            --light: #F9FAFB;
            --gray: #6B7280;
            --border: #E5E7EB;
            --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
            --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.1);
        }
        
        body {
            font-family: 'Inter', system-ui, -apple-system, sans-serif;
            background-color: #F3F4F6;
            color: var(--dark);
            line-height: 1.6;
        }
        
        .container {
            max-width: 1140px;
        }
        
        /* 导航栏样式 */
        .navbar {
            background-color: white;
            box-shadow: var(--shadow);
            padding: 0.75rem 1rem;
        }
        
        .navbar-brand {
            font-weight: 700;
            color: var(--primary);
            font-size: 1.5rem;
        }
        
        .nav-link {
            color: var(--dark);
            margin-left: 1rem;
            font-weight: 500;
            transition: color 0.2s;
        }
        
        .nav-link:hover, .nav-link.active {
            color: var(--primary);
        }
        
        /* 主内容区样式 */
        .main-content {
            padding: 2rem 0;
        }
        
        /* 积分概览卡片 */
        .points-overview-card {
            background: linear-gradient(135deg, var(--primary) 0%, #7C3AED 100%);
            color: white;
            border-radius: 16px;
            padding: 2rem;
            margin-bottom: 2rem;
            box-shadow: 0 10px 25px rgba(91, 33, 182, 0.15);
        }
        
        .overview-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 1.5rem;
        }
        
        .overview-title {
            font-size: 1.25rem;
            font-weight: 500;
            opacity: 0.9;
        }
        
        .points-refresh {
            background-color: rgba(255, 255, 255, 0.2);
            border: none;
            color: white;
            border-radius: 50%;
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background-color 0.2s;
        }
        
        .points-refresh:hover {
            background-color: rgba(255, 255, 255, 0.3);
        }
        
        .points-balance {
            font-size: 3rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }
        
        .points-expiry {
            font-size: 0.9rem;
            opacity: 0.9;
            margin-bottom: 1.5rem;
        }
        
        .points-actions {
            display: flex;
            gap: 1rem;
        }
        
        .points-btn {
            padding: 0.75rem 1.5rem;
            border-radius: 8px;
            font-weight: 500;
            font-size: 0.95rem;
            cursor: pointer;
            transition: all 0.2s;
            border: none;
        }
        
        .points-btn.primary {
            background-color: white;
            color: var(--primary);
        }
        
        .points-btn.primary:hover {
            background-color: var(--light);
        }
        
        .points-btn.secondary {
            background-color: rgba(255, 255, 255, 0.2);
            color: white;
        }
        
        .points-btn.secondary:hover {
            background-color: rgba(255, 255, 255, 0.3);
        }
        
        /* 积分标签页 */
        .points-tabs {
            background-color: white;
            border-radius: 12px;
            box-shadow: var(--shadow);
            margin-bottom: 2rem;
            overflow: hidden;
        }
        
        .tabs-header {
            display: flex;
            border-bottom: 1px solid var(--border);
        }
        
        .tab-item {
            padding: 1.25rem 1.5rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            border-bottom: 3px solid transparent;
        }
        
        .tab-item.active {
            color: var(--primary);
            border-bottom-color: var(--primary);
        }
        
        .tab-item:not(.active):hover {
            color: var(--primary);
            background-color: var(--primary-light);
        }
        
        .tab-content {
            padding: 1.5rem;
        }
        
        .tab-pane {
            display: none;
        }
        
        .tab-pane.active {
            display: block;
        }
        
        /* 积分记录 */
        .points-filters {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
            flex-wrap: wrap;
            gap: 1rem;
        }
        
        .period-filters {
            display: flex;
            gap: 0.75rem;
        }
        
        .period-filter {
            padding: 0.4rem 1rem;
            border-radius: 6px;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.2s;
            border: 1px solid var(--border);
        }
        
        .period-filter.active {
            background-color: var(--primary-light);
            color: var(--primary);
            border-color: var(--primary);
        }
        
        .search-box {
            position: relative;
        }
        
        .search-input {
            padding: 0.4rem 1rem 0.4rem 2.5rem;
            border-radius: 6px;
            border: 1px solid var(--border);
            font-size: 0.9rem;
            width: 250px;
            transition: border-color 0.2s;
        }
        
        .search-input:focus {
            outline: none;
            border-color: var(--primary);
        }
        
        .search-icon {
            position: absolute;
            left: 0.75rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--gray);
        }
        
        .points-record-list {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }
        
        .record-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem;
            border-radius: 8px;
            background-color: var(--light);
            transition: transform 0.2s;
        }
        
        .record-item:hover {
            transform: translateX(5px);
        }
        
        .record-info {
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        
        .record-icon {
            width: 40px;
            height: 40px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.25rem;
        }
        
        .record-icon.earn {
            background-color: var(--success-light);
            color: var(--success);
        }
        
        .record-icon.spend {
            background-color: var(--secondary-light);
            color: var(--secondary);
        }
        
        .record-icon.expire {
            background-color: var(--warning-light);
            color: var(--warning);
        }
        
        .record-details {
            line-height: 1.4;
        }
        
        .record-title {
            font-weight: 500;
        }
        
        .record-time {
            font-size: 0.85rem;
            color: var(--gray);
        }
        
        .record-points {
            font-weight: 600;
            font-size: 1.1rem;
        }
        
        .record-points.earn {
            color: var(--success);
        }
        
        .record-points.spend, .record-points.expire {
            color: var(--secondary);
        }
        
        /* 积分兑换 */
        .rewards-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 1.5rem;
        }
        
        .reward-card {
            background-color: var(--light);
            border-radius: 12px;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: transform 0.2s, box-shadow 0.2s;
        }
        
        .reward-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-hover);
        }
        
        .reward-image {
            width: 100%;
            height: 160px;
            object-fit: cover;
        }
        
        .reward-info {
            padding: 1.25rem;
        }
        
        .reward-title {
            font-weight: 600;
            font-size: 1.1rem;
            margin-bottom: 0.5rem;
        }
        
        .reward-description {
            font-size: 0.9rem;
            color: var(--gray);
            margin-bottom: 1rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .reward-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
        }
        
        .reward-points {
            display: flex;
            align-items: center;
            gap: 5px;
            font-weight: 600;
            color: var(--primary);
        }
        
        .reward-stock {
            font-size: 0.85rem;
            color: var(--gray);
        }
        
        .reward-action {
            width: 100%;
            padding: 0.6rem;
            border-radius: 6px;
            background-color: var(--primary);
            color: white;
            border: none;
            font-weight: 500;
            font-size: 0.95rem;
            cursor: pointer;
            transition: background-color 0.2s;
        }
        
        .reward-action:hover {
            background-color: #4C1D95;
        }
        
        .reward-action.disabled {
            background-color: #E5E7EB;
            color: var(--gray);
            cursor: not-allowed;
        }
        
        /* 会员等级 */
        .member-level-card {
            background-color: white;
            border-radius: 12px;
            box-shadow: var(--shadow);
            padding: 1.5rem;
            margin-bottom: 2rem;
        }
        
        .level-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }
        
        .level-title {
            font-size: 1.25rem;
            font-weight: 600;
        }
        
        .level-info {
            display: flex;
            align-items: center;
            gap: 1.5rem;
        }
        
        .level-badge {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary) 0%, #7C3AED 100%);
            color: white;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            box-shadow: 0 4px 12px rgba(91, 33, 182, 0.2);
        }
        
        .level-badge .level-name {
            font-size: 0.9rem;
            opacity: 0.9;
        }
        
        .level-badge .level-number {
            font-size: 1.5rem;
        }
        
        .level-progress {
            flex: 1;
        }
        
        .progress-info {
            display: flex;
            justify-content: space-between;
            margin-bottom: 0.5rem;
            font-size: 0.9rem;
        }
        
        .level-bar-container {
            height: 10px;
            background-color: var(--primary-light);
            border-radius: 5px;
            overflow: hidden;
            margin-bottom: 0.5rem;
        }
        
        .level-bar {
            height: 100%;
            background: linear-gradient(90deg, var(--primary) 0%, #7C3AED 100%);
            border-radius: 5px;
        }
        
        .next-level {
            font-size: 0.9rem;
            color: var(--gray);
        }
        
        .next-level span {
            color: var(--primary);
            font-weight: 500;
        }
        
        /* 等级特权 */
        .privileges-section {
            margin-top: 2rem;
        }
        
        .section-title {
            font-size: 1.25rem;
            font-weight: 600;
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .section-title i {
            color: var(--primary);
        }
        
        .privileges-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 1.25rem;
        }
        
        .privilege-item {
            background-color: var(--light);
            border-radius: 10px;
            padding: 1.25rem;
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
            transition: transform 0.2s;
        }
        
        .privilege-item:hover {
            transform: translateY(-3px);
        }
        
        .privilege-icon {
            width: 48px;
            height: 48px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.25rem;
            background-color: var(--primary-light);
            color: var(--primary);
        }
        
        .privilege-title {
            font-weight: 600;
        }
        
        .privilege-description {
            font-size: 0.9rem;
            color: var(--gray);
            flex: 1;
        }
        
        .privilege-level {
            font-size: 0.85rem;
            padding: 0.2rem 0.75rem;
            border-radius: 20px;
            background-color: var(--primary-light);
            color: var(--primary);
            width: fit-content;
        }
        
        /* 分页控件 */
        .pagination {
            display: flex;
            justify-content: center;
            margin-top: 2rem;
            gap: 0.5rem;
        }
        
        .page-btn {
            width: 36px;
            height: 36px;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid var(--border);
            background-color: white;
            color: var(--dark);
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .page-btn:hover {
            border-color: var(--primary);
            color: var(--primary);
        }
        
        .page-btn.active {
            background-color: var(--primary);
            color: white;
            border-color: var(--primary);
        }
        
        .page-btn.disabled {
            color: var(--gray);
            cursor: not-allowed;
            border-color: var(--border);
        }
        
        .page-btn.disabled:hover {
            color: var(--gray);
            border-color: var(--border);
        }
        
        /* 响应式调整 */
        @media (max-width: 992px) {
            .rewards-grid, .privileges-grid {
                grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
            }
        }
        
        @media (max-width: 768px) {
            .points-balance {
                font-size: 2.5rem;
            }
            
            .level-info {
                flex-direction: column;
                align-items: flex-start;
                gap: 1rem;
            }
            
            .rewards-grid, .privileges-grid {
                grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            }
            
            .search-input {
                width: 100%;
            }
        }
        
        @media (max-width: 576px) {
            .overview-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 1rem;
            }
            
            .points-actions {
                flex-direction: column;
            }
            
            .points-btn {
                width: 100%;
            }
            
            .tabs-header {
                overflow-x: auto;
                white-space: nowrap;
            }
            
            .tab-item {
                padding: 1rem;
            }
            
            .record-item {
                flex-direction: column;
                align-items: flex-start;
                gap: 1rem;
            }
            
            .record-points {
                align-self: flex-end;
            }
            
            .rewards-grid, .privileges-grid {
                grid-template-columns: 1fr;
            }
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar navbar-expand-lg">
        <div class="container">
            <a class="navbar-brand" href="#">社交平台</a>
            
            <div class="collapse navbar-collapse" id="navbarNav">
                <ul class="navbar-nav ms-auto">
                    <li class="nav-item">
                        <a class="nav-link" href="#"><i class="fas fa-home me-1"></i> 首页</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#"><i class="fas fa-compass me-1"></i> 发现</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#"><i class="fas fa-tasks me-1"></i> 任务</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link active" aria-current="page" href="#"><i class="fas fa-coins me-1"></i> 积分</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#"><i class="far fa-user me-1"></i> 我的</a>
                    </li>
                </ul>
            </div>
        </div>
    </nav>
    
    <div class="container main-content">
        <!-- 积分概览卡片 -->
        <div class="points-overview-card">
            <div class="overview-header">
                <div class="overview-title">当前积分</div>
                <button class="points-refresh" title="刷新">
                    <i class="fas fa-sync-alt"></i>
                </button>
            </div>
            
            <div class="points-balance">12,850</div>
            <div class="points-expiry">
                <i class="far fa-clock me-1"></i> 包含 2,500 积分将在 2023年12月31日 过期
            </div>
            
            <div class="points-actions">
                <button class="points-btn primary">
                    <i class="fas fa-gift me-1"></i> 去兑换
                </button>
                <button class="points-btn secondary">
                    <i class="fas fa-plus-circle me-1"></i> 赚更多积分
                </button>
            </div>
        </div>
        
        <!-- 会员等级 -->
        <div class="member-level-card">
            <div class="level-header">
                <div class="level-title">会员等级</div>
            </div>
            
            <div class="level-info">
                <div class="level-badge">
                    <span class="level-name">黄金会员</span>
                    <span class="level-number">Lv.5</span>
                </div>
                
                <div class="level-progress">
                    <div class="progress-info">
                        <span>当前积分: 12,850</span>
                        <span>距离下一等级: 7,150</span>
                    </div>
                    <div class="level-bar-container">
                        <div class="level-bar" style="width: 64%;"></div>
                    </div>
                    <div class="next-level">
                        下一等级: <span>铂金会员(Lv.6)</span>，需 20,000 积分
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 积分标签页 -->
        <div class="points-tabs">
            <div class="tabs-header">
                <div class="tab-item active" data-tab="points-record">积分记录</div>
                <div class="tab-item" data-tab="points-rewards">积分兑换</div>
                <div class="tab-item" data-tab="privileges">等级特权</div>
            </div>
            
            <!-- 积分记录标签页 -->
            <div class="tab-content">
                <div class="tab-pane active" id="points-record">
                    <div class="points-filters">
                        <div class="period-filters">
                            <div class="period-filter active">全部时间</div>
                            <div class="period-filter">本月</div>
                            <div class="period-filter">上月</div>
                            <div class="period-filter">近3个月</div>
                        </div>
                        
                        <div class="search-box">
                            <i class="fas fa-search search-icon"></i>
                            <input type="text" class="search-input" placeholder="搜索记录...">
                        </div>
                    </div>
                    
                    <div class="points-record-list">
                        <!-- 收入记录 -->
                        <div class="record-item">
                            <div class="record-info">
                                <div class="record-icon earn">
                                    <i class="fas fa-tasks"></i>
                                </div>
                                <div class="record-details">
                                    <div class="record-title">完成每日签到任务</div>
                                    <div class="record-time">2023-06-15 08:30</div>
                                </div>
                            </div>
                            <div class="record-points earn">+20</div>
                        </div>
                        
                        <div class="record-item">
                            <div class="record-info">
                                <div class="record-icon earn">
                                    <i class="fas fa-comment"></i>
                                </div>
                                <div class="record-details">
                                    <div class="record-title">评论3条动态任务</div>
                                    <div class="record-time">2023-06-14 15:45</div>
                                </div>
                            </div>
                            <div class="record-points earn">+10</div>
                        </div>
                        
                        <div class="record-item">
                            <div class="record-info">
                                <div class="record-icon earn">
                                    <i class="fas fa-share-alt"></i>
                                </div>
                                <div class="record-details">
                                    <div class="record-title">分享动态到其他平台</div>
                                    <div class="record-time">2023-06-14 11:20</div>
                                </div>
                            </div>
                            <div class="record-points earn">+15</div>
                        </div>
                        
                        <!-- 支出记录 -->
                        <div class="record-item">
                            <div class="record-info">
                                <div class="record-icon spend">
                                    <i class="fas fa-gift"></i>
                                </div>
                                <div class="record-details">
                                    <div class="record-title">兑换 1个月会员体验</div>
                                    <div class="record-time">2023-06-10 19:30</div>
                                </div>
                            </div>
                            <div class="record-points spend">-500</div>
                        </div>
                        
                        <!-- 收入记录 -->
                        <div class="record-item">
                            <div class="record-info">
                                <div class="record-icon earn">
                                    <i class="fas fa-user-plus"></i>
                                </div>
                                <div class="record-details">
                                    <div class="record-title">邀请好友注册成功</div>
                                    <div class="record-time">2023-06-08 16:15</div>
                                </div>
                            </div>
                            <div class="record-points earn">+200</div>
                        </div>
                        
                        <!-- 过期记录 -->
                        <div class="record-item">
                            <div class="record-info">
                                <div class="record-icon expire">
                                    <i class="fas fa-exclamation-circle"></i>
                                </div>
                                <div class="record-details">
                                    <div class="record-title">积分过期</div>
                                    <div class="record-time">2023-06-01 00:00</div>
                                </div>
                            </div>
                            <div class="record-points expire">-150</div>
                        </div>
                    </div>
                    
                    <!-- 分页 -->
                    <div class="pagination">
                        <button class="page-btn disabled">
                            <i class="fas fa-chevron-left"></i>
                        </button>
                        <button class="page-btn active">1</button>
                        <button class="page-btn">2</button>
                        <button class="page-btn">3</button>
                        <button class="page-btn">4</button>
                        <button class="page-btn">5</button>
                        <button class="page-btn">
                            <i class="fas fa-chevron-right"></i>
                        </button>
                    </div>
                </div>
                
                <!-- 积分兑换标签页 -->
                <div class="tab-pane" id="points-rewards">
                    <div class="rewards-grid">
                        <!-- 兑换商品1 -->
                        <div class="reward-card">
                            <img src="https://picsum.photos/400/300?random=10" alt="月度会员" class="reward-image">
                            <div class="reward-info">
                                <h3 class="reward-title">月度会员体验</h3>
                                <p class="reward-description">兑换后可享受一个月会员特权，包括无广告、高清头像框和专属客服</p>
                                <div class="reward-meta">
                                    <div class="reward-points">
                                        <i class="fas fa-coins"></i>
                                        <span>500 积分</span>
                                    </div>
                                    <div class="reward-stock">剩余 128 件</div>
                                </div>
                                <button class="reward-action">立即兑换</button>
                            </div>
                        </div>
                        
                        <!-- 兑换商品2 -->
                        <div class="reward-card">
                            <img src="https://picsum.photos/400/300?random=11" alt="定制周边" class="reward-image">
                            <div class="reward-info">
                                <h3 class="reward-title">平台定制马克杯</h3>
                                <p class="reward-description">限量版平台定制马克杯，设计独特，质感优良，包邮到家</p>
                                <div class="reward-meta">
                                    <div class="reward-points">
                                        <i class="fas fa-coins"></i>
                                        <span>2000 积分</span>
                                    </div>
                                    <div class="reward-stock">剩余 36 件</div>
                                </div>
                                <button class="reward-action">立即兑换</button>
                            </div>
                        </div>
                        
                        <!-- 兑换商品3 -->
                        <div class="reward-card">
                            <img src="https://picsum.photos/400/300?random=12" alt="积分翻倍卡" class="reward-image">
                            <div class="reward-info">
                                <h3 class="reward-title">24小时积分翻倍卡</h3>
                                <p class="reward-description">使用后24小时内所有任务获得的积分翻倍，加速升级</p>
                                <div class="reward-meta">
                                    <div class="reward-points">
                                        <i class="fas fa-coins"></i>
                                        <span>300 积分</span>
                                    </div>
                                    <div class="reward-stock">剩余 89 件</div>
                                </div>
                                <button class="reward-action">立即兑换</button>
                            </div>
                        </div>
                        
                        <!-- 兑换商品4 -->
                        <div class="reward-card">
                            <img src="https://picsum.photos/400/300?random=13" alt="专属徽章" class="reward-image">
                            <div class="reward-info">
                                <h3 class="reward-title">限量版专属徽章</h3>
                                <p class="reward-description">可在个人主页展示的限量版专属徽章，彰显独特身份</p>
                                <div class="reward-meta">
                                    <div class="reward-points">
                                        <i class="fas fa-coins"></i>
                                        <span>800 积分</span>
                                    </div>
                                    <div class="reward-stock">剩余 52 件</div>
                                </div>
                                <button class="reward-action">立即兑换</button>
                            </div>
                        </div>
                        
                        <!-- 兑换商品5 -->
                        <div class="reward-card">
                            <img src="https://picsum.photos/400/300?random=14" alt="线下活动" class="reward-image">
                            <div class="reward-info">
                                <h3 class="reward-title">平台线下活动门票</h3>
                                <p class="reward-description">参加平台举办的线下交流活动，与其他用户面对面交流</p>
                                <div class="reward-meta">
                                    <div class="reward-points">
                                        <i class="fas fa-coins"></i>
                                        <span>5000 积分</span>
                                    </div>
                                    <div class="reward-stock">剩余 15 件</div>
                                </div>
                                <button class="reward-action">立即兑换</button>
                            </div>
                        </div>
                        
                        <!-- 兑换商品6 -->
                        <div class="reward-card">
                            <img src="https://picsum.photos/400/300?random=15" alt="积分捐赠" class="reward-image">
                            <div class="reward-info">
                                <h3 class="reward-title">公益积分捐赠</h3>
                                <p class="reward-description">将积分捐赠给公益项目，平台将按比例兑换为实际捐款</p>
                                <div class="reward-meta">
                                    <div class="reward-points">
                                        <i class="fas fa-coins"></i>
                                        <span>1000 积分起</span>
                                    </div>
                                    <div class="reward-stock">不限量</div>
                                </div>
                                <button class="reward-action">立即捐赠</button>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 等级特权标签页 -->
                <div class="tab-pane" id="privileges">
                    <div class="privileges-section">
                        <h3 class="section-title">
                            <i class="fas fa-star"></i>
                            会员等级特权
                        </h3>
                        
                        <div class="privileges-grid">
                            <!-- 特权1 -->
                            <div class="privilege-item">
                                <div class="privilege-icon">
                                    <i class="fas fa-ad"></i>
                                </div>
                                <h4 class="privilege-title">免广告体验</h4>
                                <p class="privilege-description">浏览平台内容时不会显示任何广告，享受纯净体验</p>
                                <span class="privilege-level">Lv.2及以上</span>
                            </div>
                            
                            <!-- 特权2 -->
                            <div class="privilege-item">
                                <div class="privilege-icon">
                                    <i class="fas fa-image"></i>
                                </div>
                                <h4 class="privilege-title">高清头像</h4>
                                <p class="privilege-description">可上传高清头像，支持更大尺寸和更高分辨率的图片</p>
                                <span class="privilege-level">Lv.3及以上</span>
                            </div>
                            
                            <!-- 特权3 -->
                            <div class="privilege-item">
                                <div class="privilege-icon">
                                    <i class="fas fa-gift"></i>
                                </div>
                                <h4 class="privilege-title">生日礼包</h4>
                                <p class="privilege-description">生日当月可领取专属礼包，包含积分和限定道具</p>
                                <span class="privilege-level">Lv.4及以上</span>
                            </div>
                            
                            <!-- 特权4 -->
                            <div class="privilege-item">
                                <div class="privilege-icon">
                                    <i class="fas fa-comment-dots"></i>
                                </div>
                                <h4 class="privilege-title">优先客服</h4>
                                <p class="privilege-description">享受7x24小时专属客服服务，问题优先处理</p>
                                <span class="privilege-level">Lv.5及以上</span>
                            </div>
                            
                            <!-- 特权5 -->
                            <div class="privilege-item">
                                <div class="privilege-icon">
                                    <i class="fas fa-percentage"></i>
                                </div>
                                <h4 class="privilege-title">兑换折扣</h4>
                                <p class="privilege-description">积分商城兑换商品时享受9折优惠，省钱更划算</p>
                                <span class="privilege-level">Lv.6及以上</span>
                            </div>
                            
                            <!-- 特权6 -->
                            <div class="privilege-item">
                                <div class="privilege-icon">
                                    <i class="fas fa-user-secret"></i>
                                </div>
                                <h4 class="privilege-title">匿名发布</h4>
                                <p class="privilege-description">可发布完全匿名的内容，保护隐私不被泄露</p>
                                <span class="privilege-level">Lv.5及以上</span>
                            </div>
                            
                            <!-- 特权7 -->
                            <div class="privilege-item">
                                <div class="privilege-icon">
                                    <i class="fas fa-lightbulb"></i>
                                </div>
                                <h4 class="privilege-title">新功能体验</h4>
                                <p class="privilege-description">优先体验平台新功能，参与产品改进建议</p>
                                <span class="privilege-level">Lv.7及以上</span>
                            </div>
                            
                            <!-- 特权8 -->
                            <div class="privilege-item">
                                <div class="privilege-icon">
                                    <i class="fas fa-trophy"></i>
                                </div>
                                <h4 class="privilege-title">专属徽章</h4>
                                <p class="privilege-description">获得独特的会员等级徽章，展示在个人主页</p>
                                <span class="privilege-level">Lv.1及以上</span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <script>
        // 标签页切换
        document.querySelectorAll('.tab-item').forEach(item => {
            item.addEventListener('click', function() {
                // 移除所有标签的active类
                document.querySelectorAll('.tab-item').forEach(tab => {
                    tab.classList.remove('active');
                });
                // 给当前点击的标签添加active类
                this.classList.add('active');
                
                // 隐藏所有内容面板
                document.querySelectorAll('.tab-pane').forEach(pane => {
                    pane.classList.remove('active');
                });
                
                // 显示对应的内容面板
                const tabId = this.getAttribute('data-tab');
                document.getElementById(tabId).classList.add('active');
            });
        });
        
        // 时间筛选切换
        document.querySelectorAll('.period-filter').forEach(filter => {
            filter.addEventListener('click', function() {
                document.querySelectorAll('.period-filter').forEach(f => {
                    f.classList.remove('active');
                });
                this.classList.add('active');
                
                // 这里可以添加筛选逻辑
                const period = this.textContent;
                console.log('筛选时间段: ' + period);
            });
        });
        
        // 刷新积分
        document.querySelector('.points-refresh').addEventListener('click', function() {
            const icon = this.querySelector('i');
            icon.classList.add('fa-spin');
            
            // 模拟刷新延迟
            setTimeout(() => {
                icon.classList.remove('fa-spin');
                alert('积分已刷新');
            }, 1000);
        });
        
        // 去兑换按钮
        document.querySelector('.points-btn.primary').addEventListener('click', function() {
            // 切换到积分兑换标签页
            document.querySelectorAll('.tab-item')[1].click();
            
            // 平滑滚动到标签页
            document.querySelector('.points-tabs').scrollIntoView({
                behavior: 'smooth'
            });
        });
        
        // 赚更多积分按钮
        document.querySelector('.points-btn.secondary').addEventListener('click', function() {
            alert('跳转到任务中心页面，完成任务赚取更多积分');
        });
        
        // 兑换商品按钮
        document.querySelectorAll('.reward-action').forEach(btn => {
            btn.addEventListener('click', function() {
                const rewardTitle = this.closest('.reward-info').querySelector('.reward-title').textContent;
                const points = this.closest('.reward-info').querySelector('.reward-points span').textContent;
                
                if (this.textContent === '立即捐赠') {
                    alert(`确认捐赠 ${points} 积分用于公益项目？`);
                } else {
                    alert(`确认使用 ${points} 积分兑换 "${rewardTitle}" 吗？`);
                }
            });
        });
        
        // 分页按钮
        document.querySelectorAll('.page-btn:not(.disabled)').forEach(btn => {
            btn.addEventListener('click', function() {
                if (!this.classList.contains('active')) {
                    document.querySelectorAll('.page-btn').forEach(b => {
                        b.classList.remove('active');
                    });
                    this.classList.add('active');
                    // 这里可以添加加载对应页数据的逻辑
                }
            });
        });
    </script>
</body>
</html>
    
